home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0105
/
vb.zip
/
LGTICS.FRM
< prev
next >
Wrap
Text File
|
1996-01-10
|
25KB
|
766 lines
VERSION 2.00
Begin Form TicDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Tics"
ClientHeight = 5340
ClientLeft = 1860
ClientTop = 1530
ClientWidth = 8820
Height = 5700
Left = 1800
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 356
ScaleMode = 3 'Pixel
ScaleWidth = 588
Top = 1230
Width = 8940
Begin Frame Frame7
BackColor = &H00C0C0C0&
Caption = "Scale Position Properties"
Height = 1215
Left = 330
TabIndex = 46
Top = 4020
Width = 4080
Begin HScrollBar HScroll1
Height = 240
Index = 8
Left = 1650
Max = 100
TabIndex = 48
Top = 645
Width = 1800
End
Begin HScrollBar HScroll1
Height = 240
Index = 7
Left = 1650
Max = 100
TabIndex = 47
Top = 390
Width = 1800
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "ScalePositionStop:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 8
Left = 270
TabIndex = 18
Top = 660
Width = 1335
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 8
Left = 3480
TabIndex = 49
Top = 660
Width = 180
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "ScalePositionStart:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 7
Left = 255
TabIndex = 50
Top = 420
Width = 1350
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 7
Left = 3480
TabIndex = 51
Top = 420
Width = 180
End
End
Begin LGAUGE LGauge1
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00C0C0C0&
BandID = 0
Bands = 0
BevelInner = 0 ' 0 - None
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
FontID = 0
Height = 2595
Left = 240
Orientation = 0 ' 0 - Horizontal
PointerID = 0
Pointers = 1
ScaleID = 0
Scales = 1
TabIndex = 44
TicID = 0
Tics = 3
Top = 750
Width = 4215
ZLoad = LGTICS.FRX:0000
End
Begin Frame Frame6
BackColor = &H00C0C0C0&
Caption = "Tic Label Properties"
Height = 1215
Left = 4620
TabIndex = 4
Top = 4020
Width = 4095
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "TicLabelOn"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Left = 1440
TabIndex = 7
Top = 300
Value = 1 'Checked
Width = 1095
End
Begin HScrollBar HScroll1
Height = 240
Index = 6
Left = 1470
Max = 100
TabIndex = 8
Top = 630
Width = 2130
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 6
Left = 3630
TabIndex = 10
Top = 645
Width = 180
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicLabelPosition:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 6
Left = 240
TabIndex = 19
Top = 645
Width = 1200
End
End
Begin Frame Frame5
BackColor = &H00C0C0C0&
Caption = "Tic Size Properties"
Height = 1215
Left = 4635
TabIndex = 34
Top = 2775
Width = 4080
Begin HScrollBar HScroll1
Height = 240
Index = 5
Left = 990
Max = 100
TabIndex = 43
Top = 795
Width = 2400
End
Begin HScrollBar HScroll1
Height = 240
Index = 3
Left = 990
Max = 100
TabIndex = 20
Top = 315
Width = 2400
End
Begin HScrollBar HScroll1
Height = 240
Index = 4
Left = 990
Max = 100
TabIndex = 21
Top = 555
Width = 2400
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicWidth:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 5
Left = 300
TabIndex = 26
Top = 810
Width = 660
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 5
Left = 3420
TabIndex = 31
Top = 840
Width = 180
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 3
Left = 3420
TabIndex = 22
Top = 330
Width = 180
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicInner:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 3
Left = 345
TabIndex = 23
Top = 330
Width = 615
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 4
Left = 3420
TabIndex = 24
Top = 570
Width = 180
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicOuter:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 4
Left = 315
TabIndex = 25
Top = 570
Width = 660
End
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Tic Value Properties"
Height = 1200
Left = 4635
TabIndex = 33
Top = 1545
Width = 4080
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 990
Max = 100
TabIndex = 37
Top = 285
Width = 2400
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 990
Max = 100
TabIndex = 36
Top = 525
Width = 2400
End
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 990
Max = 100
TabIndex = 35
Top = 750
Width = 2400
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 0
Left = 3405
TabIndex = 32
Top = 300
Width = 180
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicStart:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 0
Left = 360
TabIndex = 42
Top = 300
Width = 600
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicStop:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 1
Left = 360
TabIndex = 41
Top = 540
Width = 585
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 1
Left = 3405
TabIndex = 40
Top = 555
Width = 180
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 2
Left = 3405
TabIndex = 39
Top = 810
Width = 180
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicDelta:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 2
Left = 315
TabIndex = 38
Top = 780
Width = 615
End
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "TicColor"
Height = 1395
Left = 7320
TabIndex = 3
Top = 90
Width = 1395
Begin Label Colors
BackColor = &H00000000&
Height = 300
Index = 0
Left = 240
TabIndex = 5
Top = 270
Width = 300
End
Begin Label Colors
BackColor = &H00808080&
Height = 300
Index = 1
Left = 900
TabIndex = 6
Top = 600
Width = 300
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 300
Index = 2
Left = 570
TabIndex = 11
Top = 270
Width = 300
End
Begin Label Colors
BackColor = &H000000FF&
Height = 300
Index = 3
Left = 240
TabIndex = 12
Top = 930
Width = 300
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 300
Index = 4
Left = 900
TabIndex = 13
Top = 270
Width = 300
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 300
Index = 5
Left = 570
TabIndex = 14
Top = 930
Width = 300
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 300
Index = 6
Left = 240
TabIndex = 15
Top = 600
Width = 300
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 300
Index = 7
Left = 900
TabIndex = 16
Top = 930
Width = 300
End
Begin Label Colors
BackColor = &H000080FF&
Height = 300
Index = 8
Left = 570
TabIndex = 17
Top = 600
Width = 300
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Tic Style"
Height = 1395
Left = 5730
TabIndex = 27
Top = 90
Width = 1545
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Diamond"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 3
Left = 180
TabIndex = 9
Top = 975
Width = 1100
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Triangle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 2
Left = 180
TabIndex = 30
Top = 765
Width = 1100
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Circle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 1
Left = 180
TabIndex = 29
Top = 555
Width = 1100
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Rectangle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 0
Left = 180
TabIndex = 28
Top = 330
Value = -1 'True
Width = 1100
End
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Tic ID"
Height = 1395
Left = 4650
TabIndex = 0
Top = 90
Width = 1035
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "2"
Height = 255
Index = 2
Left = 360
TabIndex = 45
Top = 870
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "1"
Height = 255
Index = 1
Left = 360
TabIndex = 2
Top = 630
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "0"
Height = 255
Index = 0
Left = 360
TabIndex = 1
Top = 390
Value = -1 'True
Width = 615
End
End
End
Sub Check1_Click ()
lgauge1.TicLabelOn = check1
End Sub
Sub Colors_Click (index As Integer)
lgauge1.TicColor = colors(index).BackColor
End Sub
Sub Form_Load ()
hscroll1(0) = lgauge1.TicStart
hscroll1(1) = lgauge1.TicStop
hscroll1(2) = lgauge1.TicDelta
hscroll1(3) = lgauge1.TicInner * 100
hscroll1(4) = lgauge1.TicOuter * 100
hscroll1(5) = lgauge1.TicWidth * 1000
hscroll1(6) = lgauge1.TicLabelPosition * 100
hscroll1(7) = lgauge1.ScalePositionStart * 100
hscroll1(8) = lgauge1.ScalePositionStop * 100
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
lgauge1.TicStart = hscroll1(0)
label2(0) = hscroll1(0)
Case 1
lgauge1.TicStop = hscroll1(1)
label2(1) = hscroll1(1)
Case 2
lgauge1.TicDelta = hscroll1(2)
label2(2) = hscroll1(2)
Case 3
lgauge1.TicInner = hscroll1(3) / 100
label2(3) = hscroll1(3) / 100
Case 4
lgauge1.TicOuter = hscroll1(4) / 100
label2(4) = hscroll1(4) / 100
Case 5
lgauge1.TicWidth = hscroll1(5) / 1000
label2(5) = hscroll1(5) / 1000
Case 6
lgauge1.TicLabelPosition = hscroll1(6) / 100
label2(6) = hscroll1(6) / 100
Case 7
lgauge1.ScalePositionStart = hscroll1(7) / 100
label2(7) = hscroll1(7) / 100
Case 8
lgauge1.ScalePositionStop = hscroll1(8) / 100
label2(8) = hscroll1(8) / 100
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
lgauge1.TicStart = hscroll1(0)
label2(0) = hscroll1(0)
Case 1
lgauge1.TicStop = hscroll1(1)
label2(1) = hscroll1(1)
Case 2
lgauge1.TicDelta = hscroll1(2)
label2(2) = hscroll1(2)
Case 3
lgauge1.TicInner = hscroll1(3) / 100
label2(3) = hscroll1(3) / 100
Case 4
lgauge1.TicOuter = hscroll1(4) / 100
label2(4) = hscroll1(4) / 100
Case 5
lgauge1.TicWidth = hscroll1(5) / 1000
label2(5) = hscroll1(5) / 1000
Case 6
lgauge1.TicLabelPosition = hscroll1(6) / 100
label2(6) = hscroll1(6) / 100
Case 7
lgauge1.ScalePositionStart = hscroll1(7) / 100
label2(7) = hscroll1(7) / 100
Case 8
lgauge1.ScalePositionStop = hscroll1(8) / 100
label2(8) = hscroll1(8) / 100
End Select
End Sub
Sub Option1_Click (index As Integer)
lgauge1.TicID = index
hscroll1(0) = lgauge1.TicStart
hscroll1(1) = lgauge1.TicStop
hscroll1(2) = lgauge1.TicDelta
hscroll1(3) = lgauge1.TicInner * 100
hscroll1(4) = lgauge1.TicOuter * 100
hscroll1(5) = lgauge1.TicWidth * 1000
hscroll1(6) = lgauge1.TicLabelPosition * 100
hscroll1(7) = lgauge1.ScalePositionStart * 100
hscroll1(8) = lgauge1.ScalePositionStop * 100
option2(lgauge1.TicStyle) = True
check1 = -lgauge1.TicLabelOn
End Sub
Sub Option2_Click (index As Integer)
lgauge1.TicStyle = index
End Sub